using System.Collections.Generic;
using System.Runtime.InteropServices;

namespace M2Server
{

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
    public struct MapUnitInfo
    {
        [MarshalAs(UnmanagedType.U2)]
        public ushort wBkImg;
        [MarshalAs(UnmanagedType.U2)]
        public ushort wMidImg;
        [MarshalAs(UnmanagedType.U2)]
        public ushort wFrImg;
        [MarshalAs(UnmanagedType.U1)]
        public byte btDoorIndex;
        [MarshalAs(UnmanagedType.U1)]
        public byte btDoorOffset;
        [MarshalAs(UnmanagedType.U1)]
        public byte btAniFrame;
        [MarshalAs(UnmanagedType.U1)]
        public byte btAniTick;
        [MarshalAs(UnmanagedType.U1)]
        public byte btArea;
        [MarshalAs(UnmanagedType.U1)]
        public byte btLight;
    }

    public class MapCellInfo
    {
        public byte chFlag;
        public IList<TOSObject> ObjList;

        public MapCellInfo()
        {
            ObjList = new List<TOSObject>();
        }
    }
}